package com.simon.strategy;

public class Client {
    public static void main(String[] args) {
        int arr[] = {1,4,6,2,5,7,10,9};
        int result[];
        ArrayHandler ah = new ArrayHandler();

        Sort sort;
        //sort = new BubbleSort();
        sort = new InsertSort();
        ah.setSortObj(sort);//设置具体策略
        result = ah.sort(arr);

        for(int i = 0;i < result.length;i++){
            System.out.println(result[i] + ",");
        }

    }
}
